package mytaxy.tpagp;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.RadioGroup;


public class MyTaxyActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        final Button btnEnter = (Button)findViewById(R.id.Enter);
        final Button btnQuit = (Button)findViewById(R.id.Quit);
        
        btnEnter.setOnClickListener(new View.OnClickListener() {
            public void onClick(View arg0){startActivity(new Intent(MyTaxyActivity.this,MenuActivity.class));}
        });
        
        btnQuit.setOnClickListener(new View.OnClickListener() {
            public void onClick(View arg0){finish();}
        });
        
        /*final RadioGroup rg = (RadioGroup)findViewById(R.id.rgroup);
        rg.clearCheck();
        rg.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            public void onCheckedChanged(RadioGroup group, int checkedId) {
                if (rg.getCheckedRadioButtonId() == R.id.radio2) startActivity(new Intent(MyTaxyActivity.this,MenuActivity.class)); 
                else finish();
            }
        });*/
    }
}